package org.senseframework.support.example.mongo;

import org.bson.types.ObjectId;
import org.senseframework.support.orm.mongodb.MongoCollection;

import java.util.Date;
import java.util.List;

/**
 * 铃音mongodb数据结构
 *
 * @author dsqin
 * @datetime 2017/9/2
 */
@MongoCollection("ring")
public class Ring {

    private ObjectId _id;

    private String ringid;

    private String name;

    private String userid;

    private String username;

    private Integer usertype;

    private String mp3url;

    private Integer diytype;

    private Integer issample;

    private String bimg;

    private String simg;

    private String label;

    private Integer status;


    private String duration;

    private Integer type;

    private String aword;

    private Integer mp3rate;

    private Integer mp3smpling;

    private Integer mp3sz;

    private String aacurl;

    private Integer aacsz;

    private Integer ttsid;

    private Integer voiceid;

    private Integer visible;

    private String gif;

    private String video;

    private String vimg;

    private Integer listencnt;

    private Integer exlistencount;

    private Integer storecount;

    private Integer setcount;

    private Integer commentcount;

    private List<CopyRight> copyrights;

    private Integer fire;

    private Date ctm;

    private Date utm;

    public ObjectId get_id() {
        return _id;
    }

    public void set_id(ObjectId _id) {
        this._id = _id;
    }

    public String getRingid() {
        return ringid;
    }

    public void setRingid(String ringid) {
        this.ringid = ringid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getUsertype() {
        return usertype;
    }

    public void setUsertype(Integer usertype) {
        this.usertype = usertype;
    }

    public String getMp3url() {
        return mp3url;
    }

    public void setMp3url(String mp3url) {
        this.mp3url = mp3url;
    }

    public Integer getDiytype() {
        return diytype;
    }

    public void setDiytype(Integer diytype) {
        this.diytype = diytype;
    }

    public Integer getIssample() {
        return issample;
    }

    public void setIssample(Integer issample) {
        this.issample = issample;
    }

    public String getBimg() {
        return bimg;
    }

    public void setBimg(String bimg) {
        this.bimg = bimg;
    }

    public String getSimg() {
        return simg;
    }

    public void setSimg(String simg) {
        this.simg = simg;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getAword() {
        return aword;
    }

    public void setAword(String aword) {
        this.aword = aword;
    }

    public Integer getMp3rate() {
        return mp3rate;
    }

    public void setMp3rate(Integer mp3rate) {
        this.mp3rate = mp3rate;
    }

    public Integer getMp3smpling() {
        return mp3smpling;
    }

    public void setMp3smpling(Integer mp3smpling) {
        this.mp3smpling = mp3smpling;
    }

    public Integer getMp3sz() {
        return mp3sz;
    }

    public void setMp3sz(Integer mp3sz) {
        this.mp3sz = mp3sz;
    }

    public String getAacurl() {
        return aacurl;
    }

    public void setAacurl(String aacurl) {
        this.aacurl = aacurl;
    }

    public Integer getAacsz() {
        return aacsz;
    }

    public void setAacsz(Integer aacsz) {
        this.aacsz = aacsz;
    }

    public Integer getTtsid() {
        return ttsid;
    }

    public void setTtsid(Integer ttsid) {
        this.ttsid = ttsid;
    }

    public Integer getVoiceid() {
        return voiceid;
    }

    public void setVoiceid(Integer voiceid) {
        this.voiceid = voiceid;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public String getGif() {
        return gif;
    }

    public void setGif(String gif) {
        this.gif = gif;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getVimg() {
        return vimg;
    }

    public void setVimg(String vimg) {
        this.vimg = vimg;
    }

    public Integer getListencnt() {
        return listencnt;
    }

    public void setListencnt(Integer listencnt) {
        this.listencnt = listencnt;
    }

    public Integer getExlistencount() {
        return exlistencount;
    }

    public void setExlistencount(Integer exlistencount) {
        this.exlistencount = exlistencount;
    }

    public Integer getStorecount() {
        return storecount;
    }

    public void setStorecount(Integer storecount) {
        this.storecount = storecount;
    }

    public Integer getSetcount() {
        return setcount;
    }

    public void setSetcount(Integer setcount) {
        this.setcount = setcount;
    }

    public List<CopyRight> getCopyrights() {
        return copyrights;
    }

    public void setCopyrights(List<CopyRight> copyrights) {
        this.copyrights = copyrights;
    }

    public Integer getCommentcount() {
        return commentcount;
    }

    public void setCommentcount(Integer commentcount) {
        this.commentcount = commentcount;
    }

    public Integer getFire() {
        return fire;
    }

    public void setFire(Integer fire) {
        this.fire = fire;
    }

    public Date getCtm() {
        return ctm;
    }

    public void setCtm(Date ctm) {
        this.ctm = ctm;
    }

    public Date getUtm() {
        return utm;
    }

    public void setUtm(Date utm) {
        this.utm = utm;
    }

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Ring-{\"_id\":\"");
		builder.append(_id);
		builder.append("\",\"ringid\":\"");
		builder.append(ringid);
		builder.append("\",\"name\":\"");
		builder.append(name);
		builder.append("\",\"userid\":\"");
		builder.append(userid);
		builder.append("\",\"username\":\"");
		builder.append(username);
		builder.append("\",\"usertype\":\"");
		builder.append(usertype);
		builder.append("\",\"mp3url\":\"");
		builder.append(mp3url);
		builder.append("\",\"diytype\":\"");
		builder.append(diytype);
		builder.append("\",\"issample\":\"");
		builder.append(issample);
		builder.append("\",\"bimg\":\"");
		builder.append(bimg);
		builder.append("\",\"simg\":\"");
		builder.append(simg);
		builder.append("\",\"label\":\"");
		builder.append(label);
		builder.append("\",\"status\":\"");
		builder.append(status);
		builder.append("\",\"duration\":\"");
		builder.append(duration);
		builder.append("\",\"type\":\"");
		builder.append(type);
		builder.append("\",\"aword\":\"");
		builder.append(aword);
		builder.append("\",\"mp3rate\":\"");
		builder.append(mp3rate);
		builder.append("\",\"mp3smpling\":\"");
		builder.append(mp3smpling);
		builder.append("\",\"mp3sz\":\"");
		builder.append(mp3sz);
		builder.append("\",\"aacurl\":\"");
		builder.append(aacurl);
		builder.append("\",\"aacsz\":\"");
		builder.append(aacsz);
		builder.append("\",\"ttsid\":\"");
		builder.append(ttsid);
		builder.append("\",\"voiceid\":\"");
		builder.append(voiceid);
		builder.append("\",\"visible\":\"");
		builder.append(visible);
		builder.append("\",\"gif\":\"");
		builder.append(gif);
		builder.append("\",\"video\":\"");
		builder.append(video);
		builder.append("\",\"vimg\":\"");
		builder.append(vimg);
		builder.append("\",\"listencnt\":\"");
		builder.append(listencnt);
		builder.append("\",\"exlistencount\":\"");
		builder.append(exlistencount);
		builder.append("\",\"storecount\":\"");
		builder.append(storecount);
		builder.append("\",\"setcount\":\"");
		builder.append(setcount);
		builder.append("\",\"commentcount\":\"");
		builder.append(commentcount);
		builder.append("\",\"copyrights\":\"");
		builder.append(copyrights);
		builder.append("\",\"fire\":\"");
		builder.append(fire);
		builder.append("\",\"ctm\":\"");
		builder.append(ctm);
		builder.append("\",\"utm\":\"");
		builder.append(utm);
		builder.append("\"}");
		return builder.toString();
	}
    
    
}